<div id="content-header">
    <div id="breadcrumb"> 
    	<a ui-sref="home.projectCost" title="Go to Home" class="tip-bottom">
    		<i class="icon-home"></i> 统计分析</a> 
    		<a ui-sref="home.projectCost" class="current">项目成本
    	</a> 
    </div>
  </div>
  <div class="col-sm-12 col-md-5" style="padding-top: 80px;width: 100%	;">
	<!--<div class="dt-buttons btn-group">
		<a class="btn btn-primary buttons-copy buttons-html5" tabindex="0" aria-controls="datatable-buttons" href="#"><span>Copy</span></a>
		<a class="btn btn-success buttons-excel buttons-html5" tabindex="0" aria-controls="datatable-buttons" href="#"><span>Excel</span></a>
		<a class="btn btn-danger buttons-pdf buttons-html5" tabindex="0" aria-controls="datatable-buttons" href="#"><span>PDF</span></a>
	</div>-->
	 
	 <!--<button ui-sref="home.feeSubject" class="btn  btn-primary btnheight">模板下载</button>-->
	<div class="col-md-13">
		
		<div id="datatable-buttons_filter" class="dataTables_filter" >
			<label style="float: left;">
					<span style="font-size: 14px; padding-right: 10px; color: #000000;">开始时间</span>
					<start-time   ng-model="startTime" ></start-time>
			</label>
			<label style="float: left;">
					<span style="font-size: 14px; padding-right: 10px; color: #000000;">结束时间</span>
					<end-time    ng-model="endTime" ></end-time>
			</label>
			<label style="float: left;">
				<input type="search" ng-model="key" class="form-control inputweight" 
					placeholder="" aria-controls="datatable-buttons">
					<button  class="btn  btn-primary btnheight btn-inquiry" ng-click="search(pageNum)">查询</button>
			</label>
		</div>
	</div>
</div>
  <div class="container-fluid">
    <div class="row-fluid">
      <div class="span12">
 
			<div class="widget-box">
          <div class="widget-content nopadding">
            <table class="table table-bordered data-table">
              <thead>
                <tr>
                  <th width="20%" >项目编号</th>
                  <th width="10%">项目名称</th>
                  <th width="10%">合同额</th>
                  <th width="10%">采购成本</th>
                  <th width="10%">项目费用</th>
                  <th width="10%">其他成本</th>
                  <th  width="10%">总成本</th>
                  <th  width="10%">项目利润</th>
                  <th  width="10%">利润率</th>
                  <th  width="10%">操作</th>
                </tr>
              </thead>
              <tbody>
                <tr class="gradeX" bindonce ng-repeat="o in list">
                  <td bo-text="o.serialNum"></td>
                  <td bo-text="o.pname"></td>
                  <td bo-text="o.saleCost"></td>
                  <td bo-text="o.procurementCost"></td>
                  <td bo-text="o.feeCost"></td>
                   <td bo-text="o.otherfeeCost"></td>
                  <td bo-text="o.allfee"></td>
                  <td bo-text="o.profit"></td>
                  <td bo-text="o.percentage"></td>
                  <td>
                  	<button ui-sref="home.projectDetailed({id:o.id,page:pageNum,url:'projectCost'})" class="btn  btn-primary">明细</button>
                  </td>
                </tr>
                 <tr class="gradeX"  ng-if="totalSize==0||totalSize==undefined"  class="even">
	            	<td colspan="10"> 暂无数据</td>
	           	</tr>
              </tbody>
            </table>
            
           
          </div>
        </div>
         <div class="fy" ng-if="totalSize>0">
									<p>共<span>{{totalSize}}</span>条记录，<span>{{pageNum}}</span>/<span>{{totalNum}}</span>页</p>
									<ul uib-pagination 
										first-text="首页" 
										last-text='末页' 
										next-text='下一页' 
										previous-text='上一页' 
										total-items="totalSize" 
										items-per-page='pageSize' 
										boundary-link-numbers='true' 
										max-size='3' boundary-links='true' 
										ng-model="$parent.tj.current" 
										ng-change='search(tj.current)'>
									</ul>
									<p>到第<input placeholder="{{pageNum}}" ng-change="pageUp()" ng-model="$parent.tj.page" />页</p>
									<span ng-click="toPage($parent.tj.page)">前往</span>
			</div>
					
      </div>
    </div>
 </div>